package view
{
	import ui.GameOverUI;
	import laya.events.Event;

	/**
	 * ...
	 * @author
	 */
	public class GameOverView extends GameOverUI{
		public function GameOverView(){
			btn_restart.on(Event.CLICK,this,this.onClick);
		}

		public function setScore(score:int):void
		{
			txt_score.text = "得分：" + score;
		}

		private function onClick():void
		{
			GameManager.getInstance().restartGame();
			Laya.stage.removeChild(this);
		}
	}

}